package me.ahoukuse.clipboard;

import androidx.appcompat.app.AppCompatActivity;

import android.annotation.SuppressLint;
import android.os.Bundle;
import android.util.DisplayMetrics;
import android.widget.TextView;

import org.w3c.dom.Text;

public class DebugInfoActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_debug_info);
        TextView view = findViewById(R.id.debuginfo_textView);
        String debug_info = null;
        DisplayMetrics metrics = this.getResources().getDisplayMetrics();
        debug_info = String.format("屏幕\n   DPI %d\n   X %d \n   Y %d",
                metrics.densityDpi,
                metrics.widthPixels,
                metrics.heightPixels
        );

        view.setText(debug_info);
    }
}
